package tech.horgee.schedule;

import lombok.Getter;
import lombok.Setter;
import org.springframework.boot.context.properties.ConfigurationProperties;

import java.util.ArrayList;
import java.util.List;

@Getter
@Setter
@ConfigurationProperties(prefix = "cron-task")
public class TaskProperties {
    //定时任务总开关
    private boolean enabled = true;
    //任务池大小
    private int poolSize = Runtime.getRuntime().availableProcessors() + 1;
    //任务列表
    private List<TaskItem> list = new ArrayList<>();
}
